package com.usooft.metaTalent.core.platform.mapper;

import com.usooft.metaTalent.core.platform.entity.Article;
import com.usooft.metaTalent.core.platform.query.ArticleQuery;
import com.usooft.metaTalent.core.platform.wrapper.ArticleWrapper;
import java.lang.Long;
import java.util.List;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface ArticleMapper {
    int add(Article article);

    int update(Article article);

    Article get(Long id);

    List<ArticleWrapper> list(ArticleQuery query);

    int count(@Param("filter") ArticleQuery.Filter filter);
}
